<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>公司用车管理系统（财务）</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            font-family: "Microsoft YaHei", Arial, sans-serif;
            background: #f6f6f6;
        }
        .header {
            background: #183a8a;
            color: #fff;
            font-size: 2rem;
            font-weight: bold;
            padding: 10px 0 10px 10px;
            letter-spacing: 2px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .header-right {
            display: flex;
            align-items: center;
            margin-right: 30px;
            font-size: 1rem;
        }
        .user-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #fff;
            color: #183a8a;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            margin-right: 10px;
        }
        .user-info {
            margin-right: 20px;
            color: #fff;
        }
        .bell-icon {
            font-size: 1.3rem;
            margin-right: 20px;
            color: #fff;
        }
        .logout {
            color: #fff;
            text-decoration: none;
            margin-left: 10px;
            font-size: 1rem;
        }
        .container {
            display: flex;
            height: calc(100vh - 56px);
        }
        .sidebar {
            width: 220px;
            background: #183a8a;
            display: flex;
            flex-direction: column;
            padding-top: 10px;
            box-shadow: 2px 0 8px rgba(24,58,138,0.05);
        }
        .menu-item {
            color: #fff;
            padding: 18px 0 18px 32px;
            font-size: 1.15rem;
            cursor: pointer;
            border-left: 5px solid transparent;
            transition: background 0.2s, border 0.2s;
            text-decoration: none;
            display: block;
        }
        .menu-item.active, .menu-item:hover {
            background: #2450a7;
            border-left: 5px solid #fff;
            font-weight: bold;
            box-shadow: 0 4px 8px rgba(24,58,138,0.10);
        }
        .main-content {
            flex: 1;
            background: #f6f6f6;
            padding: 20px;
            display: flex;
            flex-direction: column;
        }
        .content-title {
            font-size: 2rem;
            font-weight: bold;
            color: #183a8a;
            margin-bottom: 30px;
            padding-bottom: 10px;
            border-bottom: 2px solid #183a8a;
        }
        .card-container {
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
            gap: 20px;
        }
        .card {
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            width: 300px;
            padding: 20px;
            text-align: center;
            cursor: pointer;
            transition: transform 0.3s, box-shadow 0.3s;
        }
        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        }
        .card-title {
            font-size: 1.5rem;
            font-weight: bold;
            color: #183a8a;
            margin-bottom: 15px;
        }
        .card-icon {
            font-size: 3rem;
            margin-bottom: 15px;
            color: #3ba0e9;
        }
        .card-desc {
            color: #666;
            font-size: 1rem;
        }
        @media (max-width: 900px) {
            .sidebar {
                width: 120px;
            }
            .card {
                width: 100%;
            }
        }
    </style>
</head>
<body>
<div class="header">
    <div>欢迎登录公司用车管理系统（财务）</div>
    <div class="header-right">
        <div class="user-icon">👤</div>
        <div class="user-info">
            用户: <%= session.getAttribute("username") %>
            (<%= session.getAttribute("role") %>)
        </div>
        <a href="LogoutServlet" class="logout">退出登录</a>
    </div>
</div>
<div class="container">
    <div class="sidebar">
        <a class="menu-item active" href="firstpage.jsp">系统首页</a>
        <a class="menu-item" href="Profile.jsp">个人中心</a>
        <a class="menu-item" href="myTo-Do.jsp">我的待办</a>
        <a class="menu-item" href="Cost.jsp">用车费用报销单</a>
        <a class="menu-item" href="expenseClaim.jsp">维修费用报销单</a>
    </div>
    <div class="main-content">
        <div class="content-title">公司用车管理系统</div>
        <div class="card-container">
            <a href="myTo-Do.jsp" class="card">
                <div class="card-icon">📋</div>
                <div class="card-title">我的待办</div>
                <div class="card-desc">查看和处理您的待办事项</div>
            </a>
            <a href="Cost.jsp" class="card">
                <div class="card-icon">💰</div>
                <div class="card-title">用车费用报销单</div>
                <div class="card-desc">管理和审批用车费用报销</div>
            </a>
            <a href="expenseClaim.jsp" class="card">
                <div class="card-icon">🔧</div>
                <div class="card-title">维修费用报销单</div>
                <div class="card-desc">管理和审批维修费用报销</div>
            </a>
        </div>
    </div>
</div>
</body>
</html>